﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace MM.Data.Entities
{
    public class Ship
    {
        [Key]
        public int ShipId { get; set; }

        [Required]
        public string ShipName { get; set; }

        [Description("A valid product license key collected from internet")]
        public string Key { get; set; }

        #region Ship Information
        [Required]
        public string FileName { get; set; }

        public DateTime PublishedUTC { get; set; }

        public DateTime LastUpdatedUTC { get; set; }

        [Required]
        public string SHA1 { get; set; }

        [Required]
        public string ISOCRC { get; set; }

        [Description("0 -> Multi-Language; 1033 -> en-us; 2052 -> zh-cn; ...")]
        public int Locale { get; set; }
        #endregion

        #region File Information
        [Description("File length in bytes, 0 means not available")]
        public long FileLength { get; set; }

        [Description("An MD4 based hash of the file, null means not available")]
        public string eMuleHash { get; set; }
        #endregion
    }
}
